<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //计算该数字的平方
        var Test = prompt("请输入一个你想计算平方的数字：");
        alert("您输入数字平方后的结果为："+Test*Test);
    </script>
</head>
<body>

</body>
</html>